import { defineStore } from "pinia";
import { ref, computed } from "vue";

//统一封装属性，避免传值复杂
function initState() {
    return {
        user: {
            name: "张三",
            age: 18,
            sex: "男",
            phone: "13800000000",
        },
        token: '',
    };
}

export const useUserStore = defineStore("userStore", () => {
    const state = ref(initState())
    const increment = () => {

    }
    return {
        state,
        increment,
    }
});
